a =[1,2,3,4,5]
b =[6,7,8,9,10]
a.extend( b)
print(a)
e = [1,2,3,4,5]
f = [6,7,8,9,10]
d = e + f #产生新的对象
print(d)
# [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

a = [1,2,3,4,5]
a.append(6)
print(a)
a = [1,2,3,4,5]
a =a*3
print(a)
a = [1,2,3,4,5] + [10]
print(a)
a.insert(3,3)
print( a)
# [1, 2, 3, 4, 5, 6]
# [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5]
# [1, 2, 3, 4, 5, 10]
# [1, 2, 3, 3, 4, 5, 10]

#删除的本质还是元素的拷贝
a = [1,2,3,4,5]
del a[0]
print(a)
pop = a.pop(2)
print(pop)
print( a)
a=[1,2,3,4,5]
a.remove(3)
print(a)
# [2, 3, 4, 5]
# 4
# [2, 3, 5]
# [1, 2, 4, 5]
